import { useSelect } from "../redux"
import { S } from "../store"

const Name = () => {

    const name = useSelect((state: S) => state.name)
    console.log('---name', new Date().getTime())

    return <div>
        <h1>Name: {name}</h1>
    </div>
}

export default Name